package com.zy.xuanwo.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by njb on 2016/7/11.
 */
public class RegisterBean implements Serializable {

    /**
     * code : 403
     * message : Forbidden: user is existed!
     */

    private ErrorBean error;
    /**
     * source : Users.php:143 at call stage
     * stages : {"success":["get","route","negotiate","validate"],"failure":["call","message"]}
     */

    private DebugBean debug;

    public ErrorBean getError() {
        return error;
    }

    public void setError(ErrorBean error) {
        this.error = error;
    }

    public DebugBean getDebug() {
        return debug;
    }

    public void setDebug(DebugBean debug) {
        this.debug = debug;
    }





    public static class DebugBean {
        private String source;
        private StagesBean stages;

        public String getSource() {
            return source;
        }

        public void setSource(String source) {
            this.source = source;
        }

        public StagesBean getStages() {
            return stages;
        }

        public void setStages(StagesBean stages) {
            this.stages = stages;
        }

        public static class StagesBean {
            private List<String> success;
            private List<String> failure;

            public List<String> getSuccess() {
                return success;
            }

            public void setSuccess(List<String> success) {
                this.success = success;
            }

            public List<String> getFailure() {
                return failure;
            }

            public void setFailure(List<String> failure) {
                this.failure = failure;
            }
        }
    }

    @Override
    public String toString() {
        return "RegisterBean{" +
                "error=" + error +
                ", debug=" + debug +
                '}';
    }
}
